class Product {
    Supplier supplier
    Catalog catalog

    String   productName
    String   modelNo  //型号
    Long     amount   //数量
    BigDecimal inPrice //进价
    BigDecimal outPrice//零售价
    Date       time
    String     productFlag=""
    String     remarks=""
    String     number=""             //进货单序号 

    static belongsTo = [supplier :Supplier, catalog:Catalog]

    static constraints = {
        productName (blank:false)
        remarks (type:'text')
    }

    static mapping = {
        tablePerHierarchy false
    }

}
